added command line arguments, added GPS thread, simplified page creation