Implemented alogd library.
Merge branch 'lib' into dev