several fixes
new version
use exceptions for error handling
use explicit import
new version 0.01.02