fixed some minor bugs. server seems to be pretty stable. couldn't check for images and keys since they haven't been available. also need to write better comments and jUnit tests for the retrieval part of the protocol