Added exception when empty common list and fixed bug on computing lexical richness.
Added logging and various exceptions.
- Reading process has its own module
- Logging for reading process
- Database handling (through ugly globals :() a bit improved