Improved comments + phpDoc; improved support for NSEW