Refactory code to use rust-core
Add license
Add std rlib and refactory code