sec_ware,
That was quite helpfull and helped a lot .

My programm is running but it gives some exceptions sometimes .
It has now become pretty long so it would be difficult to post here.

Remove 1 bug and u get 100 more. Programmers life is just like that