added helpers, finished device detail, using ruby