Implemented most of the logic for building a simple command
Cleaned up indentation. Commented out print statements.