add setOptions function, reorganise and up to v1