Remove redundant import and redundant function

parseCommand and some imports are removed due to redundancy