Correctly retrieve the latest weight entry, fix JSON bug
Fix pep8 formatting
Add tests for the BMI calculator