New posterior format
data storage
added save function
Added save option