Move main classes interface to lib header