Cleaned out main file, added many comments, better variable names