Started rewrite to Api class.
Added parser