add amd support; fixes #10 and #17
amd update
indent using spaces instead of tabs
amd and style updates