LICENCE and AUTHORS added
 small changes to the code