normalized formatting, added working stack constructor

I'm using [EditorConfig](http://editorconfig.org/) for code conventions.