update ruby version code
fix code issues and update comments