Fix web resource access
Fix license
Clean code