Added functionality for storing default trials value
Added exception handling and comments
Updated tuntikirjanpito