For Item 1;

Take a look at the code under this post.
http://www.picbasic.co.uk/forum/showthread.php?t=3494

Easy to figure out an array with ShiftIn.


-------------------------------