Added a lot of documentation, fixed a bug with AJAX where the browser could try and redirect instead of fill in a form.