major update. now supports es6-style modules among other things.