bug fixes, better system added for logging and lots more results