Removed phi and added some comments.
Updated comments