various fixes
- completely fixed the faulty optimization
- implemented rand, randf, srand functions
- implemented type table for type interfacing between dyn.libs
- updated the docs
-- including some older changes and general normalization