Added missing client functionality in NoteFragment, fixed refresh issues
in MainActivity, and made minor changes to the structor of the app.