update comments and change var names for shake to be more generalistic
update cursor movement/config to be based upon passed dimensions