Added comments and time messuring

Signed-off-by: Daniel Pawłowski <danielpawlow@gmail.com>