Added firs parts of lib.
Added package comments.