Added phpDocs
Added InvalidArgsException