Reorganised intersection code directory, fixed bug in reflection code.