Refactor: Remove duplicate code
Add basic command implementation
Add initial main func