Fixed codestyle
Cleaned up minimal api