Fix a bug and describe constructors in docs.