Removed out-of-bounds checking; improved phpDoc
Added Common.class.php for common functions
Improved comments + phpDoc; improved support for NSEW
Corrected old variable names; improved output pairing for coordinates
Improved output formatting; added improved out-of-bounds checking