Major fixes

Implemented exception handling of conversion functions

Now using manually overridden conversion functions

Declared many function arguments and variables "const"

Functions in msg.h has been changed to pass-by-reference

Zero as null pointer constant warning solved