Fix namespaces; add license

Fixed namespace and method inheritance. Added license.