better costing function
added documents and change uncertainty strategy