Added layer creation and initial network creation