fixing gitignore and restoring p2 repo