Documentation for core and fixes