Initial commit, adding sources from ghost project.