cleanup, error checking, and first try at pictures
forgot some files in picture commit