First commit of inapage, still work in progress