Got swapping to work, still some bugs

items stay inside memory too long, or too short it seems