bugs fixing, additions to environment manager, base fragment activity ad...

...ditions