Debugged the IO funcs

Debugged, still has segfault on the reading func, need to still add in
checking for message bodies that contain a <message...> or </message>
type body
Did further debugging of IO funcs

Fixed all perceivable bugs, added in error checking for <message
n=[number]> and </message> tags in body, but discovered that if a body
contains a partial msg tag (i.e., "<message n=1") it's a valid body but
it will throw off the findLastMessage() function and therefore cause
later message to have incorrect message numbers....only something we'll
have to worry about if he adds that kind of scenario in the testing