Many minor bug fixes
Some new patches