fixed bugs for distribution
modified markup to be rst