#293 fixes self alias
#293 Adds inches
#293 Move to 2 spaces indent
#293 - Moves most of the specific code inside Device