Corrected inter kernel communication and some small fixes.
Added some references and more fixes.