Cleaned Mastery Calculator Code

Round 1 of cleaning done.