removed unused code, added comments, tweaked profile page to not allow completely empty posts