added 512 MB cap for size of a config file
fixed initialization for stacks and queues: callback functions weren't initialized to NULL
introduced __on_return()-macro and added the use of it in some examples