add missing syntax declarations, update layoutdir docs