Add toLowerCase and cleanup whitespace

Primary reason for this pull request is to fix #66 by adding toLowerCase() to file extensions.  Also cleaned up some white space while I was in there.