corrected indentatino errors
finished parse-input function.  appears to basically work but there are some problems