Initial commit

Code originating from as2180