Removed dead code
Added set memory interface
Added scan memory interface
Added auto alignment interface