Final Submission of Cartaro: code commented, cleaned, tested.