Fix File Extension

Determines the proper file extension and renames the file

Documentation coming soon...