Added license
Debug improvements
slightly more complex test