Added scripts. Commented code. Cookie handling. Bug fixes. Moved sample xml files.