Fixed several bugs and introduced new feature }unit [unit] to request unit definition