improved testing code, can choose file to test