Change capital to currency and amount to shares

These typedefs are a better description of what the variables
hold.