Use moodle data api for LIMIT
More error checking for xdotool
Use mooshrc when using xdotool