made a new function for clarity
changed BUFFER_SIZE to 16
time measurement inserted and display stuff deleted