Partial refactoring of some libs; Partial implementation of activities; Added lib specs