[LIB]Fix: Fixed some compiling warnings
[BAM]Fix: Major bugfixes