made some fixes to gpsmodule.cpp