Add schemas code

I think for readability (in editors I think it would be good if we limited the line length of documentation to 130 as well. I know this is somewhat inconsistent between the existing doco but going forward I think it would be good to do that.