Added import functionality, fixed issue #27