Added fluent interfaces and fixed all phpdoc errors