migrated to use 0.11.1 API. Cleaned up unnecessary print statements which were used for debugging

Code is simpler now with new API.