Updated build
Split into lib and app
updated gitignore