properly format DateTime object
get correct type of result array
create getters for array keys that are used
corrections to listener