Initial code commit

Implemented everything (: