A critical survey of the contribution of William James to different problems of philosophy and religion