Make -main private
Add documentation