Adding dist capability and more documentation