Adding module brocode

This is some very rough code, up for improvement.