Added AMD Wrapper, fixes #266

Nah, I usually have my editor remove trailing whitespace too.