Realized minifal functions
Fixed small errors, added more functionality. Alpha version.