Port low level

Most important functions added & working
this file is port-dependent - place in port/ foler