Code redesign

Redesigned the whole fragment system and also added some basic design on
the main page (programs & exercises tabs)