writing some starting testing stuff
minor changes, some testing code