Implemented the use of fragments.

Fragments were implemented to make the UI flexible and the program
modular. This is in preparation for tabbed navigation, where length
conversions will be added to the program's functionality.