fixing small introduced bugs, and a bit of documentation