Multiple mapping fragments,better schema detection

Adds support for multiple mapping fragments
Improves schema name detection