Changed calculator to work with various fragments.
Implemented ID selection and creation in calculator.
Merge branch 'calc-extension-1'