Turned app into a proper library. Added widgets and partition.