Added static library building rule to makefile.
updated gitignore to ignore static library.
Added stream insertion operator.