Added documentation, fixed some progress output that goes to stderr