Added AMD Wrapper, fixes #266

tabs vs spaces and trailing spaces