bug fixes with hing constraint, add setLimit method, other code cleanups