fixed code issues
Added phpdoc and reduced length of getArgument()