Formatting, fixed compiler error
Added test.sh, self checking criteria, internal.ldf