Added some comments in the code, added references in BIN