documentation: Finished documenting module core. Removed some unused constructs.