Added implicit usage of __slots__ when only inheriting from object; minor clean up in main file.