fixed an objective construction
fixed a bug with variable indexes
added main example