cleaned up code, fixed errors, formatted profile page