bug fixes

fixed issue with iOS 6.1.6 and added ability to remember measurement
type on closing app.