Blavatar: Code Clean up

- Seperated Functions into its own file
- Added Private & Public methods