namespacification

changed code to use a namespace instead of a bogus Java-like static class

everything works!

everything seems cleaner too -- variables are declared in the file they're used
and are only declared once
minor nonsense