Updated functions, added unit selection pulldown menu for input units