fixed controller-back button. Data loss warning to be added.
improved checking for F and P computation
Fixes #33