Updated some dfm functions, added similarity().
updated pdf manual