Code cleanup & documentation

Just some quality improvements... nothing more, nothing less