Some fixes after quick code review with 8bitsofme. Questions remain about unimplemented features, how to calibrate detection, and how to communicate with the web server.