tidy-up in the import part...
removing the unnecessary imports + add some comments
command_parse function is reviewd and modified