Style changes.
Style changes.
Added set_defaults function
Better options freeing
Format fix
Terminate options after use.