Cleaned out old code and added header comments to the files.