added main package and tests