Added support for Recording to a file. Also did some file clean up and renaming.