add rudeimentary specs and clear up some warnings