made debugging levels configurable from spec
switch from clientonly flag to location flag
removed console.log statements
added data spec
added sample data