add optionlist

-> optionlist, based on a linked list, duplicates allowed (for now).

-> add unit tests for optionlist
Add protection to forbide duplicates to be added to the list

Change error code