improved constructor initialization in base nueral net