Changed IdType from object to an enum and changed all using parts (including gui)

Processing Commands should now be easier with less references.

Issue #1