fix requires
Fix ruby 1.9 incompatibilities:
don't use ruby 2.1 Array#to_h and keyword-arguments, str.lines --> str.lines.to_a
motif formatter rewritten, specs added