license headers
- format & clean up code
documentation
fixed issue#8 core module