fixing text note rendering

fixes #7; changing type of object ids to ints because they are being used as ints, duh; correcting logic in text note rendering function