Removed unused imports to clear some warnings, made some corrections to sample code in README