Removed non-relevant comments.
Moved frame contruction to cowlib.
Small refactor.