Change: Updated codes to reflect latest documents
Bugfix: Handle cases when code is unknown
Complete overhaul of the library