Implemented registerMN function, added datagram class, and added Sleep, generateIP functions