some bash functions and 'format documentation' to rspec