regenerated documentation with updated mainpage. Now includes code example