add license file, docblocks and update readme