changed GetCategories() to Categories

changed function GetCategories() to property Categories
Added support for history