changed some values to constants
changed create-device-table to have all possible fields now