updated version
updated .gitignore
updated examples to show when run from commandline
cleaned up matrix assembly code