Added FileNameExtension utility.
Added more code documentation.