Changed comments
Added AND problem
Fixed output file data