Added main file. Finalized unit functions.
Moved file.