code cleanup
added transId in as the input parameter in all mwthods
added permissions
added transId as input parameter