add better license info; clean up moodle filter a bit