Deleted more commented code, fixed warning.
Fixed bug in the profile view