Refactoring code, padding for cpu-code. README was updated.