Fixing issue #16 re: profile page. Some other stuff as well.