Added applib(showError) and modified castle to use it, closes #43
Update kernel