fixing library construction error + adding licence