wip
cleanup
working master mode
device search function implemented