Moved main part to executable in bin dir