changed filename and added some basic subroutines in preparation for obj