warnings fixed + document updated