Added the include for functions library and the code to read modem messages to main