made it ignore comments as it reads.
fixed getCommands.