improved build process and api generation. Fixed #2, #3