Modified Process class to remove unneeded code, fixed scheduler, removed mains from device and resources