added .swp to ignore
small refactor in to_postfix