Refactored some macros and added a def- macro.
Added some useful algos.
Update version.