added readme, runtime call moved outside