removed unused definition
added definition of an ERRSOFTWARE
added constraints into schemas, which initializing mapping