added fix list and completed some

fixed function names, added the todo.txt and changes the way it checks
for an admin user (uses moodle function)