fixed a couple of typos. fixes #1
added traits to generated autoloader. fixes #2