moved ackknowledge functions into library from client, using parse message function in library for handling messages now