Applied more mainline PCem commits; Repplied the CPU optimization commit alongside the fix commit.
A lot of clean ups from waltje; Start of a directory structure for the code, thanks to waltje.