Commented on code and finished codec