Core: Cleanups, some documentation