Added p.value function and improved some of the documentation