Bug fixes & continued implementation

- Fixed bugs
- Further implemented send_http_response()