added licence, updated read me, added debug