Code pretification 

Cleaned up formatting. Removed null test on line 147, reason: If the input equals anything, it is not going to be null, checking for that is a waste of time.