removed P and C, added factorial

I couldn't get the P and C functions to work so i took them out.