Formatted .rb
Added templating capabilities