Fixed numerous sniffer complaints, added documentation to geolib.php