Assert removal

Removed several assert() calls which were causing syntax errors when compiling cortex in debug mode.