added Gemfile
reformated source (once again) and moved example into own file