Convert to Library

Changing it from console application to library
Added unit tests

Testdriven with FSUnit and NUnit
First tests

abs and pla density
Cleanup