adds comments and makes some types exported to support the documentation