Cleaned up some commands, preparing for flags

Added better API documentation in code. Getting ready to start working
on command flag loading and pre-execution parameter checking