small changes on classificator
added visualisation
fixed bugs in alarm cascade and set socket to nonblocking