replace tabs with spaces
add TODO for nanosleep instead of usleep