added a few fixes and createrdf function