Layer Manager/Scripting question

It has been 10+ years since I scripted anything in max and I'm looking for a bit of info. I'm try to script the following

Layer Manager
Add the following columns
1. visible to camera
2. cast shadows
3. vray properties matte object with alpha contribution spinner
buttons should effect object properties not layer properties.

I have found that the layer dialog and the layer manager appear to be part of the same file: Macro_Layer.mcr Can't quite find the command to add the additional columns. I assume that once I figure that out it should be as simple as adding the object properties command and visibility etc etc.

If anyone has a quick second to explain how the columns are getting populated and how to add an additional one I'd be greatly appreciative.