Added Better UI + fixed  2 xml bugs

There were tags with spaces in them, resulting in invalid xml. There was
a casting error where mousePosition objects were cast as mouseClick
options, which has been fixed.

It is possible for the list of clicks to be modified while it is being
written to xml, which throws an exception. Possible bug condition.