added more comprehensive comments on code, fixed xml encoding issue, and reorganized omeka structure