updated readme and method for checking device type