finished seo-urls, added function for generating an id, some works at aoclasses and fixed some bugs with active record