Bump version to 0.5.1
Read versions from constants as if it were a property file (it's actually a bash script) so that we don't have to change version in 2 places
Change message about NaN issue
Load version from file
Be specific about why certain values aren't availble. Encourage users to use multiple optimizer runs.