Added roxygen comments to most core files.