Cleaned up file structure, added LISTENER_MODE parameter (so can either be tilt or drag!).