added .hi and .o to .gitignore
added flags
some refactoring, cheap output scrolling