Error codes

Errors added and inform user through status bar