(Hopefully) implemented reflection coefficient (though it looks weird.) Misc cleanup with no effect on function.