closed Scanner leak, fixed up some code errors, removed unecessary stati...

...c fields

I did some code cleanup, 

and all those static fields are really unecessary and disruptive to workflow