Added main cycle, getCommands() function.
Removed unused include. getCommands() now parses every command and writes them to array.
Added parseCommands() function. Moved variables.