Add main file, exception and helpers