Add instanceof checks and mapping definitions
Generate Phpdoc with each class and method

Clean up README