Uploading RPG with templated HTML. Some bug fixes.