added method detach
added ObjectMapper
refactored Unit#smsGateway -> Unit#options, added Unit#email