Fixed some errors, keep an eye on how you will register commands, as they must be done after the map is populated.