added optimize/debug declarations
more arithmetics procedures; some little reorganizing
base-macros dependencies