Cleaned up code a smidge

Fixed tab usage, did a little more commenting.