Fixed reference issues and applied single licence file.