Added debug feature to execution and fixed typo