Created generic functions for error handling.
Enabled some error handling.
Register process complete.
Exctracted some configs to pch files.