refactor stucture of package

1. commandtype is extracted out from command class
2. command class is moved under logic package