includes refactored code from arrdem. version bump to 0.1.3