Added file type detection after buffer load
Merge pull request #8 from sdavies/master

Added filetype detection after buffer load