added a benshmarking app and refactoered a bit function calls