added comments for engines oh and a bit of code