Finally got the includes correct. Due to a great friend.
last try to get the code working. Still a strange bug remains so the compiler things that there is a double declaration of variables