Cleaned up the main file.