suggestion - explore entmake. years ago I wrote my own leader command, as many have I think. I force the layer I want in the entmake list. same approach for everything I draw parametrically, like windows in elevation, the code draws everything at once in the appropriate layer in the first place. as for inserting blocks, same story. entmake the block and (cons 8 "layer_name") you want it to be inserted in.
hope that helps.
roy
totally irresponsible of me to leave this point out. while you are new at constructing the lists for various entities, just create an example entity and (entget (car (entsel))) to see what the list that created it looks like. I went for years without having to understand what a subclass marker was for, and what I could safely NOT put in the list.