Fixed a null pointer dereference if the mouse was dragged outside the play area.
cleaned up a few minor things and added files for a potential Lua SCript argument