Refactored profile page code and added line space to end of files