add another test case
add another test for longs
add a test for doubles
fix entry point handling
make class initialization more precise