Refactoring the main module; adding programs and bios