Bugfix to LDR
Added some test programs. They don't work yet of course