Moved testing into separate file. Made header file. Added 1d batch method.