Added flexibility changes to inout reader and added flexibility tests to 
add/sum/subtract