added parsing for SUBROUTINE and FUNCTION declarations