addresses

added minor error handling.
used if and else to make sure initiated inputs
probably better to use default inputs
assets error

added undef checks for add item
home error handling

cleaned up code a little