bug fixes and results added