Added percentage of assets measurement, error checking for inputs, and minor style changes