Fixed empty functions in Lab, changed filewriter to write to .out.