Cleaned up code, added timestamp features, illegal XML characters are now properly escaped