Added a main module, based on Joe`s elib recommendations.