Fixed constructor problems. Replaced funtion addAfterN
Added new revert