Removed closing '?>' tags from php files
Made sure every file ends in a newline.
Fixed null reference / array out of bounds error.
Merge pull request #1 from JacobOlitsky/master

Bug fixes for irods-php