added inital workings for implementation of invToInvscan format