Alpha v0.45

Recode of border function and bug fixes.