make file changes and pen_m test changes. pen_m test not working yet