fixed type casting
fixed id getter, added test
updated version to 0.0.2