Cleanup of various variable and function parameter names (most in cpu) and removal of unused code.