Fixed diagram in activity lifecycle, added neural networks