Removed weird static data, status and callback vars
Added phpdoc docs