Cleanup: Remove extra cruft, reorganize some basic functions into PCEngine class