Added documentation. Updated documentation and code to use 'location' instead of 'path'. Updated index.js (I'm an idiot.)