command format problem

Hi All
So far have managed to get all the commands working on individual buttons, now to group them in a ladder.
I have got to a certain point and hit a wall, not surprising as i'm new to this, but believe i am on the right track.
I have attached a copy of the custom_postgui.hal,
I put rem comments and line numbers in to help me with the debugging.
lines 12-15 are mine and work, the hal meter registers a button push.
lines 15-22 and 32 to 43 are from another source and work.
line 23-32 and 43-54 are mine and are giving me the problems

In line 23-32 i know i can't use motion.in-position for each command, they are there to fill out the command line as i don't know which one to use, have tried several, but no luck, they are there for this post only.
Lines 43-54..I think i have these correct, but not sure as the errors page comes up before it gets this far.

looks like you have tried to load classicladder twice.
Probably once in the main HAL file and once again in the custom_postgui.hal file.

looks like you have tried to link a signal to a 'driving' pins more then once (line 28) - it is already linked to in_pos.
rather then make a new signal name just change the other pins to connect to in_pos