fixing old fields
adding basic code docs