add devices & graph sample  +some fixes