Fix type in library code.
Lots of changes, not compiling yet.
Serial interface to modem works at 9600 Baud.