Text this: A decision theoretic approach to optimal investment decisions and an optimal financial structure under risk