refactor logging
add note.template
tweak layout
add more mongodb indexes