Change the structure of the bast library to have a flat tree structure in order to be able to use it from arduino ide

Also some slight changes into some library items unfortunately not documented