Added benchmark and commented code