Updated to take out few comments and corrected errors