Added the libraries. all the edits are mine!!!