A little refactoring and some style fixes
A little refactoring and some style fixes

Factored out `final_results()` from long main body.

Changed all `case` labels doubly parenthesized. `( ... )`

Fixed indentation

Introduce `is_function`, eliminate external `grep -q`.

Bumped VERSION to 0.3.0 as suggested by Adriean

beni55/shpec,rylnd/shpec,AdrieanKhisbe/shpec