Fixed authorization issue.
Added Clone functions. Merged Schema with Types.