Added support for PHP namespaces and added method and variable visibility in all classes