Fix some styles and add api framework