Refactor, use pandoc, scala code formater