Global Variables and reading from the serial, memory management