Added function to get extension from filename and a stub for creating files from the program state.