Added test for omlibrary directory. Cleaned up code. Included doctest.

This is for #25.
Merge branch 'release' as the previous changes where done on the release instead of the master branch.

Conflicts:
	buildingspy/development/regressiontest.py