Add docs and dev comments