cpu upgrade feature added
Added Exception Handling and Made pep8 compatible