Remove compilation warnings & update docs