added comments, tester.m is main file