Add quit method, change command parsing per quanticle's suggestion