Fixed some bugs, added core classes to __all__.
Updated gitignore.