fixing ERB and documentation