fix table and figure references
more cosmetic changes
have git ignore intermediate files
easier to build