Robot Attributes PHP redux and other fixes

Silly kids deleted lots of code, generous Daniel is of fix, no worries.