modify synchronmode

modified synchron mode to get the whole idea to work;
endsynchron mode method now enters a boolean true into the buffer to
signal the task => now it is ended