make fixes to handle numerical issues
updated readme