Got a new command system going. Cleaned up the index.js file.

Signed-off-by: Daniel Fagnan <dnfagnan@gmail.com>