added new arguments; parsing now histogram values