Initial code commit

It is made mostly for sync purposes, will be replaced soon.