Finished the code2040 API

Completed the four components.