added onException(NullPointerException) with default behaviour
added lgpl3 license
minor fix