Added code analysis on build.
Minor renamings, repository interfaces.