Transaction constructor now throws TransactionException if invalids params are supplied.
Deleted ExtraInformation field as it wasn't used in the whole code.
Added throws clause for TransactionException.
Removed extraInformation.
Added try-catch block for TransactionException.