minor bug fixes

all but one test case correctly return the results
added more to the result information