Added exception handling.
All functions now throw an AmxException with an error code/string.
Altered test plugin.