fixed bugs, made them all functions to call, made report