solving bugs

Master returns to two file output. Issues from vsp solved.