Added gesture recording code and traintemplate
Add some test stuff