Update gridWorking.js

Add documentation to certain functions.