Critical bug fix
First pass at docs