Added clearer example of json input
Added more notes
Removed unused imports
removed unused variables