Documentation in main added.