Port low level

Most important functions added & working
not used in this file.