Move commons to lib directory. Examples are added.