scala based document manager