changed to revealing interface pattern
added amd module support
Merge pull request #1 from danielkrainas/master

AMD-ified and Changed to the Revealing Interface Pattern