Leaner ramdisk
Split in functions cleaned unused functionality.