Completed the documentation and made the code usable