* refactor device initialized * better names and update tests * clean up last seen logic * logging consistency