Added several new input fields. Created a recursive function for capital stock.