Added import of "tuple" and definition of "error"
Added FormatSelector and fixed interface withing interface and function
typedef.