skeleton: added comments and fixed subrect implementation signature