New way to handle library, more convenient + bug fix on powerspy formula (companion object added)