Spacing and comment cleanup

Updated main: log is now loginInput and com is now commandInput for
readability purposes
Added comments