added ability to edit profile password, cleaned up some unused code, wrote some tests