changed BUFFER_SIZE to 16 (part II)
changed close-part of the main-loop. now it does not destroy my terminal...