Update timestamp function
Re-order statements
Fix auth method
add toXml function
Change bool value in toArray an toXml method
Fix typo