Add initial rbenv settings and refactor