fix errors and issue #22
updated version