fixed lots of bugs, now gives correct values

as compared with perl script
add some sample results returned from invertor

useful for testing