added getting transaction amounts; tests