Updated API docs, added XML/JSON docs