exceptions and java conversions
exceptions and java conversions
refactor a bit
adding some tests
adding some tests