Fix style in docs
Undefined var on loading
Move install file
Simplify DEFINITIONS manipulation

Also increase readability