getoptx

some tinkering

alot more

comments

some more

more doc

getoptX cleanup

tuple -> struct