Some changes to code, debugged block function and took away print statements