version 3 - added the license + comments