added some comments and started to implement sig process