Added module_errorhandler

- New module created for tracking and logging errors
- Changed the module timekeeper to module session keeper
- transfer pc function added
- modified some functions for more features