update readme, improve debug output and stack parsing