added comments to code and corrected net pay calculation