Add functionality and fix bugs

new getValueDouble method and bug fixes