Misc import fixes

Provides an alternative fix than @mpark's #103

Also initializes some member variable ints. Because uninitialized data is no fun.