refactored to classes, start refactoring process
sync handling definition
lib -> src
supports .json and .yml for profiles