Updated docs, added ability for variable and result based input